package com.nulldev.util.java.swing.extSwing;

import javax.swing.ImageIcon;

import com.nulldev.util.image.ImageUtil;

public class ListEntry {
	   private String value;
	   private ImageIcon icon;
	   private String tooltip = "";
	  
	   public ListEntry(String value, ImageIcon icon) {
	      this.value = value;
	      this.icon = icon;
	   }
	   
	   public ListEntry(String value, String tooltip) {
		      this.value = value;
		      this.icon = new ImageIcon(ImageUtil.BLANK);
		      this.tooltip = tooltip;
	   }
	   
	   public ListEntry(String value) {
		      this.value = value;
		      this.icon = new ImageIcon(ImageUtil.BLANK);
		      this.tooltip = "";
	   }
	   
	   public ListEntry(String value, ImageIcon icon, final String tooltip) {
		  this.value = value;
		  this.icon = icon;
		  this.tooltip = tooltip;
	   }
	  
	   public String getValue() {
	      return value;
	   }
	  
	   public ImageIcon getIcon() {
	      return icon;
	   }
	  
	   public String toString() {
	      return value;
	   }
	   
	   public void setValue(final String value) {
		   this.value = value;
	   }
	   
	   public void setToolTip(final String value) {
		   this.tooltip = value;
	   }
	   
	   public String getTooltip() {
		   return this.tooltip;
	   }
}
